Optimal. Leaf size=294 \[ \frac {2 b (e+f x) \tanh ^{-1}\left (e^{c+d x}\right )}{a^2 d}-\frac {(e+f x) \coth (c+d x)}{a d}+\frac {\sqrt {a^2+b^2} (e+f x) \log \left (1+\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{a^2 d}-\frac {\sqrt {a^2+b^2} (e+f x) \log \left (1+\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{a^2 d}+\frac {f \log (\sinh (c+d x))}{a d^2}+\frac {b f \text {PolyLog}\left (2,-e^{c+d x}\right )}{a^2 d^2}-\frac {b f \text {PolyLog}\left (2,e^{c+d x}\right )}{a^2 d^2}+\frac {\sqrt {a^2+b^2} f \text {PolyLog}\left (2,-\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{a^2 d^2}-\frac {\sqrt {a^2+b^2} f \text {PolyLog}\left (2,-\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{a^2 d^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.49, antiderivative size = 294, normalized size of antiderivative = 1.00, number of steps
used = 25, number of rules used = 14, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.538, Rules used =
{5688, 3801, 3556, 5704, 5558, 3377, 2717, 4267, 2317, 2438, 5684, 3403, 2296, 2221}
\begin {gather*} \frac {f \sqrt {a^2+b^2} \text {Li}_2\left (-\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{a^2 d^2}-\frac {f \sqrt {a^2+b^2} \text {Li}_2\left (-\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{a^2 d^2}+\frac {\sqrt {a^2+b^2} (e+f x) \log \left (\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}+1\right )}{a^2 d}-\frac {\sqrt {a^2+b^2} (e+f x) \log \left (\frac {b e^{c+d x}}{\sqrt {a^2+b^2}+a}+1\right )}{a^2 d}+\frac {b f \text {Li}_2\left (-e^{c+d x}\right )}{a^2 d^2}-\frac {b f \text {Li}_2\left (e^{c+d x}\right )}{a^2 d^2}+\frac {2 b (e+f x) \tanh ^{-1}\left (e^{c+d x}\right )}{a^2 d}+\frac {f \log (\sinh (c+d x))}{a d^2}-\frac {(e+f x) \coth (c+d x)}{a d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2221
Rule 2296
Rule 2317
Rule 2438
Rule 2717
Rule 3377
Rule 3403
Rule 3556
Rule 3801
Rule 4267
Rule 5558
Rule 5684
Rule 5688
Rule 5704
Rubi steps
\begin {align*} \int \frac {(e+f x) \coth ^2(c+d x)}{a+b \sinh (c+d x)} \, dx &=\frac {\int (e+f x) \coth ^2(c+d x) \, dx}{a}-\frac {b \int \frac {(e+f x) \cosh (c+d x) \coth (c+d x)}{a+b \sinh (c+d x)} \, dx}{a}\\ &=-\frac {(e+f x) \coth (c+d x)}{a d}+\frac {\int (e+f x) \, dx}{a}-\frac {b \int (e+f x) \cosh (c+d x) \coth (c+d x) \, dx}{a^2}+\frac {b^2 \int \frac {(e+f x) \cosh ^2(c+d x)}{a+b \sinh (c+d x)} \, dx}{a^2}+\frac {f \int \coth (c+d x) \, dx}{a d}\\ &=\frac {e x}{a}+\frac {f x^2}{2 a}-\frac {(e+f x) \coth (c+d x)}{a d}+\frac {f \log (\sinh (c+d x))}{a d^2}-\frac {\int (e+f x) \, dx}{a}-\frac {b \int (e+f x) \text {csch}(c+d x) \, dx}{a^2}+\frac {\left (a^2+b^2\right ) \int \frac {e+f x}{a+b \sinh (c+d x)} \, dx}{a^2}\\ &=\frac {2 b (e+f x) \tanh ^{-1}\left (e^{c+d x}\right )}{a^2 d}-\frac {(e+f x) \coth (c+d x)}{a d}+\frac {f \log (\sinh (c+d x))}{a d^2}+\frac {\left (2 \left (a^2+b^2\right )\right ) \int \frac {e^{c+d x} (e+f x)}{-b+2 a e^{c+d x}+b e^{2 (c+d x)}} \, dx}{a^2}+\frac {(b f) \int \log \left (1-e^{c+d x}\right ) \, dx}{a^2 d}-\frac {(b f) \int \log \left (1+e^{c+d x}\right ) \, dx}{a^2 d}\\ &=\frac {2 b (e+f x) \tanh ^{-1}\left (e^{c+d x}\right )}{a^2 d}-\frac {(e+f x) \coth (c+d x)}{a d}+\frac {f \log (\sinh (c+d x))}{a d^2}+\frac {\left (2 b \sqrt {a^2+b^2}\right ) \int \frac {e^{c+d x} (e+f x)}{2 a-2 \sqrt {a^2+b^2}+2 b e^{c+d x}} \, dx}{a^2}-\frac {\left (2 b \sqrt {a^2+b^2}\right ) \int \frac {e^{c+d x} (e+f x)}{2 a+2 \sqrt {a^2+b^2}+2 b e^{c+d x}} \, dx}{a^2}+\frac {(b f) \text {Subst}\left (\int \frac {\log (1-x)}{x} \, dx,x,e^{c+d x}\right )}{a^2 d^2}-\frac {(b f) \text {Subst}\left (\int \frac {\log (1+x)}{x} \, dx,x,e^{c+d x}\right )}{a^2 d^2}\\ &=\frac {2 b (e+f x) \tanh ^{-1}\left (e^{c+d x}\right )}{a^2 d}-\frac {(e+f x) \coth (c+d x)}{a d}+\frac {\sqrt {a^2+b^2} (e+f x) \log \left (1+\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{a^2 d}-\frac {\sqrt {a^2+b^2} (e+f x) \log \left (1+\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{a^2 d}+\frac {f \log (\sinh (c+d x))}{a d^2}+\frac {b f \text {Li}_2\left (-e^{c+d x}\right )}{a^2 d^2}-\frac {b f \text {Li}_2\left (e^{c+d x}\right )}{a^2 d^2}-\frac {\left (\sqrt {a^2+b^2} f\right ) \int \log \left (1+\frac {2 b e^{c+d x}}{2 a-2 \sqrt {a^2+b^2}}\right ) \, dx}{a^2 d}+\frac {\left (\sqrt {a^2+b^2} f\right ) \int \log \left (1+\frac {2 b e^{c+d x}}{2 a+2 \sqrt {a^2+b^2}}\right ) \, dx}{a^2 d}\\ &=\frac {2 b (e+f x) \tanh ^{-1}\left (e^{c+d x}\right )}{a^2 d}-\frac {(e+f x) \coth (c+d x)}{a d}+\frac {\sqrt {a^2+b^2} (e+f x) \log \left (1+\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{a^2 d}-\frac {\sqrt {a^2+b^2} (e+f x) \log \left (1+\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{a^2 d}+\frac {f \log (\sinh (c+d x))}{a d^2}+\frac {b f \text {Li}_2\left (-e^{c+d x}\right )}{a^2 d^2}-\frac {b f \text {Li}_2\left (e^{c+d x}\right )}{a^2 d^2}-\frac {\left (\sqrt {a^2+b^2} f\right ) \text {Subst}\left (\int \frac {\log \left (1+\frac {2 b x}{2 a-2 \sqrt {a^2+b^2}}\right )}{x} \, dx,x,e^{c+d x}\right )}{a^2 d^2}+\frac {\left (\sqrt {a^2+b^2} f\right ) \text {Subst}\left (\int \frac {\log \left (1+\frac {2 b x}{2 a+2 \sqrt {a^2+b^2}}\right )}{x} \, dx,x,e^{c+d x}\right )}{a^2 d^2}\\ &=\frac {2 b (e+f x) \tanh ^{-1}\left (e^{c+d x}\right )}{a^2 d}-\frac {(e+f x) \coth (c+d x)}{a d}+\frac {\sqrt {a^2+b^2} (e+f x) \log \left (1+\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{a^2 d}-\frac {\sqrt {a^2+b^2} (e+f x) \log \left (1+\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{a^2 d}+\frac {f \log (\sinh (c+d x))}{a d^2}+\frac {b f \text {Li}_2\left (-e^{c+d x}\right )}{a^2 d^2}-\frac {b f \text {Li}_2\left (e^{c+d x}\right )}{a^2 d^2}+\frac {\sqrt {a^2+b^2} f \text {Li}_2\left (-\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{a^2 d^2}-\frac {\sqrt {a^2+b^2} f \text {Li}_2\left (-\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{a^2 d^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 2.61, size = 364, normalized size = 1.24 \begin {gather*} \frac {-a d (e+f x) \coth \left (\frac {1}{2} (c+d x)\right )+2 a f \log (\sinh (c+d x))-2 b d e \log \left (\tanh \left (\frac {1}{2} (c+d x)\right )\right )+2 b c f \log \left (\tanh \left (\frac {1}{2} (c+d x)\right )\right )+2 b f \left (-\left ((c+d x) \left (\log \left (1-e^{-c-d x}\right )-\log \left (1+e^{-c-d x}\right )\right )\right )-\text {PolyLog}\left (2,-e^{-c-d x}\right )+\text {PolyLog}\left (2,e^{-c-d x}\right )\right )+2 \sqrt {a^2+b^2} \left (-2 d e \tanh ^{-1}\left (\frac {a+b e^{c+d x}}{\sqrt {a^2+b^2}}\right )+2 c f \tanh ^{-1}\left (\frac {a+b e^{c+d x}}{\sqrt {a^2+b^2}}\right )+f (c+d x) \log \left (1+\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )-f (c+d x) \log \left (1+\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )+f \text {PolyLog}\left (2,\frac {b e^{c+d x}}{-a+\sqrt {a^2+b^2}}\right )-f \text {PolyLog}\left (2,-\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )\right )-a d (e+f x) \tanh \left (\frac {1}{2} (c+d x)\right )}{2 a^2 d^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(1016\) vs.
\(2(271)=542\).
time = 5.40, size = 1017, normalized size = 3.46
method | result | size |
risch | \(-\frac {2 f \ln \left ({\mathrm e}^{d x +c}\right )}{a \,d^{2}}+\frac {f \ln \left ({\mathrm e}^{d x +c}+1\right )}{a \,d^{2}}+\frac {f \ln \left ({\mathrm e}^{d x +c}-1\right )}{a \,d^{2}}+\frac {b f \dilog \left ({\mathrm e}^{d x +c}+1\right )}{a^{2} d^{2}}-\frac {f \ln \left (\frac {b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}+a}{a +\sqrt {a^{2}+b^{2}}}\right ) x}{d \sqrt {a^{2}+b^{2}}}+\frac {f \ln \left (\frac {-b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}-a}{-a +\sqrt {a^{2}+b^{2}}}\right ) x}{d \sqrt {a^{2}+b^{2}}}-\frac {f \ln \left (\frac {b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}+a}{a +\sqrt {a^{2}+b^{2}}}\right ) c}{d^{2} \sqrt {a^{2}+b^{2}}}+\frac {f \ln \left (\frac {-b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}-a}{-a +\sqrt {a^{2}+b^{2}}}\right ) c}{d^{2} \sqrt {a^{2}+b^{2}}}+\frac {b f c \ln \left ({\mathrm e}^{d x +c}-1\right )}{a^{2} d^{2}}+\frac {b f \ln \left ({\mathrm e}^{d x +c}+1\right ) x}{a^{2} d}-\frac {2 b^{2} e \arctanh \left (\frac {2 b \,{\mathrm e}^{d x +c}+2 a}{2 \sqrt {a^{2}+b^{2}}}\right )}{a^{2} d \sqrt {a^{2}+b^{2}}}+\frac {b^{2} f \dilog \left (\frac {-b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}-a}{-a +\sqrt {a^{2}+b^{2}}}\right )}{a^{2} d^{2} \sqrt {a^{2}+b^{2}}}-\frac {b^{2} f \dilog \left (\frac {b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}+a}{a +\sqrt {a^{2}+b^{2}}}\right )}{a^{2} d^{2} \sqrt {a^{2}+b^{2}}}+\frac {b^{2} f \ln \left (\frac {-b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}-a}{-a +\sqrt {a^{2}+b^{2}}}\right ) x}{a^{2} d \sqrt {a^{2}+b^{2}}}+\frac {b^{2} f \ln \left (\frac {-b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}-a}{-a +\sqrt {a^{2}+b^{2}}}\right ) c}{a^{2} d^{2} \sqrt {a^{2}+b^{2}}}-\frac {b^{2} f \ln \left (\frac {b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}+a}{a +\sqrt {a^{2}+b^{2}}}\right ) x}{a^{2} d \sqrt {a^{2}+b^{2}}}-\frac {b^{2} f \ln \left (\frac {b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}+a}{a +\sqrt {a^{2}+b^{2}}}\right ) c}{a^{2} d^{2} \sqrt {a^{2}+b^{2}}}+\frac {2 b^{2} f c \arctanh \left (\frac {2 b \,{\mathrm e}^{d x +c}+2 a}{2 \sqrt {a^{2}+b^{2}}}\right )}{a^{2} d^{2} \sqrt {a^{2}+b^{2}}}-\frac {2 e \arctanh \left (\frac {2 b \,{\mathrm e}^{d x +c}+2 a}{2 \sqrt {a^{2}+b^{2}}}\right )}{d \sqrt {a^{2}+b^{2}}}-\frac {f \dilog \left (\frac {b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}+a}{a +\sqrt {a^{2}+b^{2}}}\right )}{d^{2} \sqrt {a^{2}+b^{2}}}+\frac {f \dilog \left (\frac {-b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}-a}{-a +\sqrt {a^{2}+b^{2}}}\right )}{d^{2} \sqrt {a^{2}+b^{2}}}+\frac {b e \ln \left ({\mathrm e}^{d x +c}+1\right )}{a^{2} d}-\frac {b e \ln \left ({\mathrm e}^{d x +c}-1\right )}{a^{2} d}-\frac {2 \left (f x +e \right )}{d a \left ({\mathrm e}^{2 d x +2 c}-1\right )}+\frac {b f \dilog \left ({\mathrm e}^{d x +c}\right )}{a^{2} d^{2}}+\frac {2 f c \arctanh \left (\frac {2 b \,{\mathrm e}^{d x +c}+2 a}{2 \sqrt {a^{2}+b^{2}}}\right )}{d^{2} \sqrt {a^{2}+b^{2}}}\) | \(1017\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 1447 vs.
\(2 (271) = 542\).
time = 0.41, size = 1447, normalized size = 4.92 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (e + f x\right ) \coth ^{2}{\left (c + d x \right )}}{a + b \sinh {\left (c + d x \right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\mathrm {coth}\left (c+d\,x\right )}^2\,\left (e+f\,x\right )}{a+b\,\mathrm {sinh}\left (c+d\,x\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________